<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Grom Hellscream
 * Date: 10/30/12
 * Time: 6:37 PM
 * To change this template use File | Settings | File Templates.
 */
// No direct access.
defined('_JEXEC') or die;
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.multiselect');
JHTML::_('behavior.mootools');

$document = JFactory::getDocument();
$document->addStyleSheet(JURI::base() . 'components/com_vast/assets/css/admin_ui.css');
$document->addStyleSheet(JURI::base() . 'components/com_vast/assets/css/admin_menu.css');
$document->addStyleSheet(JURI::base() . 'components/com_vast/assets/css/admin.styles.css');
$document->addStyleSheet(JURI::base() . 'components/com_vast/assets/css/toolbar_images.css');
$document->addStyleSheet(JURI::base() . 'components/com_vast/assets/css/menu_images.css');

$document->addStyleSheet(JURI::root() . 'components/com_vast/assets/css/chosen.css');
$document->addStyleSheet(JURI::root() . 'components/com_vast/assets/css/vtip.css');
$document->addStyleSheet(JURI::root() . 'components/com_vast/assets/js/fancybox/jquery.fancybox-1.3.4.css');

$document->addScript(JURI::root() . 'components/com_vast/assets/js/jquery.min.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/jquery-ui.min.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/jquery.ui.autocomplete.html.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/jquery.noConflict.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/vmsite.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/fancybox/jquery.mousewheel-3.0.4.pack.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/fancybox/jquery.easing-1.3.pack.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/fancybox/jquery.fancybox-1.3.4.pack.js');
$document->addScript(JURI::base() . 'components/com_vast/assets/js/jquery.coookie.js');
$document->addScript(JURI::root() . 'components/com_vast/assets/js/chosen.jquery.min.js');
$document->addScript(JURI::base() . 'components/com_vast/assets/js/vm2admin.js');

$document->addScriptDeclaration('
		var tip_image=\'/joomla/components/com_virtuemart/assets/js/images/vtip_arrow.png\';
		var vm2string ={ editImage: \'edit image\',select_all_text: \'select all options\',select_some_options_text :\'Select some Options\', select_an_option_text:\'Select an Option\'} ;
		 jQuery( function($) {

			$(\'dl#system-message\').hide().slideDown(400);
			$(\'.virtuemart-admin-area .toggler\').vm2admin(\'toggle\');
			$(\'#admin-ui-menu\').vm2admin(\'accordeon\');
			if ( $(\'#admin-ui-tabs\').length  ) {
				$(\'#admin-ui-tabs\').vm2admin(\'tabs\',virtuemartcookie).find(\'select\').chosen({enable_select_all: true,select_all_text : vm2string.select_all_text,select_some_options_text:vm2string.select_some_options_text});
			}

			$(\'#content-box [title]\').vm2admin(\'tips\',tip_image);
			$(\'.modal\').fancybox();
			$(\'.reset-value\').click( function(e){
                e.preventDefault();
                none = \'\';
                jQuery(this).parent().find(\'.ui-autocomplete-input\').val(none);

            });

		});

		var virtuemartcookie="virtuemart";

');

?>

<div class="virtuemart-admin-area">
<div class="menu-wrapper">
    <a href="index.php?option=com_vast&view=vast">
        <div class="menu-vmlogo"></div>
    </a>

    <div id="admin-ui-menu" class="admin-ui-menu">


        <h3 class="menu-title">
            Quản lý cán bộ nhân viên
        </h3>

        <div class="menu-list">
            <ul>
                <li>
                    <a href="index.php?option=com_vast&view=hosocanbos"><span
                        class="vmicon vmicon-16-folder_camera"></span>Hồ sơ cán bộ</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=congtacs"><span class="vmicon vmicon-16-camera"></span>Quản
                        lý công tác</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=tinhtranglamviecs"><span
                        class="vmicon vmicon-16-document_move"></span>Tình trạng làm việc</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=hesoluongs"><span
                        class="vmicon vmicon-16-price_watch"></span>Hệ số lương</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=dienbienluongs"><span
                        class="vmicon vmicon-16-calculator"></span>Diễn biến lương</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=dienbienhocvis"><span
                        class="vmicon vmicon-16-comments"></span>Diễn biến học vị</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=dienbienhochams"><span
                        class="vmicon vmicon-16-shopping"></span>Diễn biến học hàm</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=huongnghiencuus"><span
                        class="vmicon vmicon-16-page_white_stack"></span>Hướng nghiên cứu</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=congtrinhs"><span class="vmicon vmicon-16-config"></span>Công
                        trình khoa học</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=khenthuongs"><span
                        class="vmicon vmicon-16-orderstatus"></span>Khen thưởng</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=kiluats"><span class="vmicon vmicon-16-coins"></span>Kỉ luật</a>
                </li>
            </ul>
        </div>


        <h3 class="menu-title">
            Chức năng quản lý viện </h3>

        <div class="menu-list">
            <ul>
                <li>
                    <a href="index.php?option=com_vast&view=orders"><span
                        class="vmicon vmicon-16-page_white_stack"></span>Sửa thông tin viện</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=donvis"><span
                        class="vmicon vmicon-16-to_do_list_cheked_1"></span>Quản lý đơn vị</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=phongs"><span class="vmicon vmicon-16-info"></span>Phòng
                        trong viện</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=khois"><span class="vmicon vmicon-16-user"></span>Quản lý
                        khối chức năng</a>
                </li>
            </ul>
        </div>


        <h3 class="menu-title">
            Hồ sơ cá nhân </h3>

        <div class="menu-list">
            <ul>
                <li>
                    <a href="index.php?option=com_virtuemart&view=manufacturer"><span
                        class="vmicon vmicon-16-wrench_orange"></span>Sửa ảnh cá nhân</a>
                </li>
                <li>
                    <a href="index.php?option=com_virtuemart&view=manufacturercategories"><span
                        class="vmicon vmicon-16-folder_wrench"></span>Thay đổi mật khẩu</a>
                </li>
            </ul>
        </div>

        <h3 class="menu-title">
            Cấu hình hệ thống </h3>

        <div class="menu-list">
            <ul>
                <li>
                    <a href="index.php?option=com_virtuemart&view=config"><span class="vmicon vmicon-16-config"></span>Configuration</a>
                </li>
                <li>
                    <a href="index.php?option=com_virtuemart&view=userfields"><span
                        class="vmicon vmicon-16-participation_rate"></span>Shopper Fields</a>
                </li>
                <li>
                    <a href="index.php?option=com_virtuemart&view=orderstatus"><span
                        class="vmicon vmicon-16-orderstatus"></span>Order Statuses</a>
                </li>
                <li>
                    <a href="index.php?option=com_virtuemart&view=currency"><span class="vmicon vmicon-16-coins"></span>Currencies</a>
                </li>
                <li>
                    <a href="index.php?option=com_virtuemart&view=country"><span class="vmicon vmicon-16-globe"></span>Countries</a>
                </li>
            </ul>
        </div>


        <h3 class="menu-title">
            Từ điển danh mục </h3>

        <div class="menu-list">
            <ul>
                <li>
                    <a href="index.php?option=com_vast&view=chucdanhs"><span class="vmicon vmicon-16-help"></span>
                        Danh mục chức danh
                    </a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=dantocs"><span
                        class="vmicon vmicon-16-reseller_programm"></span>Các dân tộc Việt</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=hochams"><span class="vmicon vmicon-16-camera"></span>Học
                        hàm</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=hocvis"><span
                        class="vmicon vmicon-16-document_move"></span>Học vị</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=ngachs"><span
                        class="vmicon vmicon-16-price_watch"></span>Ngạch công chức</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=quocgias"><span
                        class="vmicon vmicon-16-calculator"></span>Quốc gia trên thế giới</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=tongiaos"><span
                        class="vmicon vmicon-16-comments"></span>Tín ngưỡng tôn giáo</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=muckiluats"><span class="vmicon vmicon-16-config"></span>Mức
                        kỉ luật</a>
                </li>
                <li>
                    <a href="index.php?option=com_vast&view=danhhieus"><span
                        class="vmicon vmicon-16-participation_rate"></span>Danh hiệu</a>
                </li>
            </ul>
        </div>

    </div>

</div>
<div id="admin-content-wrapper">
    <div class="toggler vmicon-show"></div>
    <div id="admin-content" class="admin-content">

        <form id="adminForm"
              action="<?php echo JRoute::_('index.php?option=com_vast&layout=edit&id=' . $this->item->id); ?>"
              name="adminForm" method="post">
            <div id="admin-ui-tabs">
                <div class="tabs" title="<?php echo JText::_('COM_VAST_DONVI_INFO'); ?>">
                    <table class="adminform">
                        <tr>
                            <td valign="top" colspan="2">
                                <fieldset>
                                    <legend><?php echo JText::_('COM_VAST_DONVI_DETAIL'); ?></legend>
                                    <table width="100%" border="0">
                                        <tr>
                                            <td><?php echo $this->form->getLabel('id'); ?></td>
                                            <td><?php echo $this->form->getInput('id'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('ten'); ?></td>
                                            <td><?php echo $this->form->getInput('ten'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('diachi'); ?></td>
                                            <td><?php echo $this->form->getInput('diachi'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('sodienthoai'); ?></td>
                                            <td><?php echo $this->form->getInput('sodienthoai'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('fax'); ?></td>
                                            <td><?php echo $this->form->getInput('fax'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('thudientu'); ?></td>
                                            <td><?php echo $this->form->getInput('thudientu'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('website'); ?></td>
                                            <td><?php echo $this->form->getInput('website'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('hoidongkhoahoc'); ?></td>
                                            <td><?php echo $this->form->getInput('hoidongkhoahoc'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('khoi_id'); ?></td>
                                            <td><?php echo $this->form->getInput('khoi_id'); ?></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                    <div class="clear"></div>
                </div>
                <div class="tabs" title="Hình ảnh đơn vị">
                    <table class="adminform">
                        <tr>
                            <td valign="top" colspan="2">
                                <fieldset>
                                    <legend>Hình ảnh</legend>
                                    <table width="100%" border="0">
                                        <tr>
                                            <td><?php echo $this->form->getLabel('hinhanh'); ?></td>
                                            <td><?php echo $this->form->getInput('hinhanh'); ?></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                    <div class="clear"></div>
                </div>
                <div class="tabs" title="Các hoạt động">
                    <table class="adminform">
                        <tr>
                            <td valign="top" colspan="2">
                                <fieldset>
                                    <legend>Thông tin hoạt động</legend>
                                    <table width="100%" border="0">
                                        <tr>
                                            <td><?php echo $this->form->getLabel('chucnang'); ?></td>
                                            <td><?php echo $this->form->getInput('chucnang'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('nhiemvu'); ?></td>
                                            <td><?php echo $this->form->getInput('nhiemvu'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('hoatdongthuongxuyen'); ?></td>
                                            <td><?php echo $this->form->getInput('hoatdongthuongxuyen'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('thanhtuu'); ?></td>
                                            <td><?php echo $this->form->getInput('thanhtuu'); ?></td>
                                        </tr>
                                        <tr>
                                            <td><?php echo $this->form->getLabel('thongtinkhac'); ?></td>
                                            <td><?php echo $this->form->getInput('thongtinkhac'); ?></td>
                                        </tr>
                                    </table>
                                </fieldset>
                            </td>
                        </tr>
                    </table>
                    <div class="clear"></div>
                </div>
            </div>
            <div>
                <input type="hidden" name="task" value="donvi.edit"/>
                <input type="hidden" name="return" value="<?php echo JRequest::getCmd('return');?>"/>
                <?php echo JHtml::_('form.token'); ?>
            </div>
        </form>
    </div>
</div>
</div>